﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Scrb_Report_MonthQuery.aspx.cs" Inherits="Hisun.View.SCRB.Scrb_Report_MonthQuery" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
 <form id="form1" runat="server">
        <div>
    <table style="width:100%;">
            <tr>
                <td>
                    <asp:Label ID="Label2" runat="server" Text=" *批信息查询"></asp:Label>
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label1" runat="server" Text="查询月度：" SkinID="Label"></asp:Label>
                    <asp:DropDownList ID="DropDownList_Year" runat="server" SkinID="DropdownList">
                    </asp:DropDownList>
                    <asp:DropDownList ID="DropDownList_Month" runat="server" Height="16px" 
                        SkinID="DropdownList" Width="51px">
                    </asp:DropDownList>
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label_CenterList" runat="server" Text="作业中心：" SkinID="Label"></asp:Label>
                    <asp:DropDownList ID="DropDownList_CenterId" runat="server" Height="19px" 
                        Width="203px" AutoPostBack="True" SkinID="DropdownList">
                    </asp:DropDownList>
                    <asp:Label ID="Label_PIP" runat="server" Text="作业中心中间体：" SkinID="Label"></asp:Label>
                    <asp:DropDownList ID="DropDownList_PIP" runat="server" Height="16px" 
                        Width="130px" DataSourceID="LinqDataSource_PIP" DataTextField="中间体名称" 
                        DataValueField="中间体ID" SkinID="DropdownList">
                    </asp:DropDownList>     <asp:Button ID="Button_Query" runat="server" onclick="Button_Query_Click" 
            Text="查询" />
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            </table>
    </div>
    <asp:LinqDataSource ID="LinqDataSource_PIP" runat="server" 
        ContextTypeName="Hisun.Models.HisunDBDataContext" EnableViewState="False" 
        Select="new (中间体ID, 中间体名称)" TableName="TABC_JS_ProductInProcess" 
        Where="作业中心ID == @作业中心ID &amp;&amp; 可用 == @可用">
        <WhereParameters>
            <asp:ControlParameter ControlID="DropDownList_CenterId" Name="作业中心ID" 
                PropertyName="SelectedValue" Type="Int32" />
            <asp:Parameter DefaultValue="true" Name="可用" Type="Boolean" />
        </WhereParameters>
    </asp:LinqDataSource>
    </form>
</body>
</html>
<% = alert %>
